<template>
    <div id="app">
        <router-view v-wechat-title="$route.meta.title"></router-view>
    </div>
</template>
<script>
import consts from "@/utils/consts";
import auth from "@/utils/auth";
export default {
    name: 'app',
    data() {
        return {
            title: ""
        }
    },
    created() {
        //提前请求数据
        if (auth.getToken() != "") {
            consts.users()
            consts.projects()
        }
    },
    computed: {

    },
    methods: {

    }
}
</script>
<style lang="scss">
@import "./style/main.css";
@import "./style/color-dark.css";
@import "./style/common.scss";
</style>
